#include <avr/wdt.h>												//Watchdog timer library
#include <avr/io.h>
#include <avr/interrupt.h>


void WDT_Init(void)
{
	wdt_reset();															//reset watchdog
	WDTCSR = (1<<WDCE)|(1<<WDIE)|(1<<WDE)|(1<<WDP2)|(1<<WDP1);				//One interrupt before reset + Start watchdog timer with 1s prescaler
}

void reset_wdt()
{
		wdt_reset();		//Reset watchdog timer
}

//Watchdog timeout ISR
ISR(WDT_vect)
{
	
}
